<!DOCTYPE html>
<html>
  <head>
    <!-- Required meta tags-->
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <!-- Your app title -->
    <title>卡券查询</title>
    <!-- Path to DebugGap Library JS-->
    <!-- <script src="/wechat/static/src/debuggap/debuggap.js" type="text/javascript"></script> -->
    
    <script type="text/javascript">
       // //auto config
       // localStorage.host = '192.168.0.120';
       // localStorage.port = 11111;
       // console.log(localStorage);
    </script>
    
    <!-- Path to Framework7 Library CSS-->
    <link rel="stylesheet" href="/wechat/static/src/framework7/css/framework7.min.css">
  </head>
<body>
  <div class="panel panel-left panel-cover">
    <div class="view panel-view"> ... </div>
  </div>
  <!-- Views -->
  <div class="views">
    <!-- Your main view -->
    <div class="view view-main">
      <!-- Navbar-->
        <div class="navbar">
            <div class="navbar-inner">
                <div class="left">
                </div>
                <div class="center">卡券产品一览</div>
                <div class="right">
                </div>
            </div>
        </div>
      <!-- Pages -->
        <!-- Pages container, because we use fixed-through navbar and toolbar, it has additional appropriate classes-->
        <div class="pages navbar-through toolbar-through">
            <!-- Page, "data-page" contains page name -->
            <div data-page="products" class="page">
            <div class="page-content">
                <a href="/wx/card/statistics" class="button">统计图表</a>
                <div class="content-block-title">代理商 [ ${partner.name} ] 卡券汇总</div>
                <div class="list-block">
                    <ul>
                        <% for product in products_list %>
                        <li>
                          <a href="/wx/card/list?product_id=${product.product_id}" class="item-link">
                              <div class="item-content">
                              <div class="item-inner">
                                <div class="item-title">${product.product_name}</div>
                                <div class="item-after"><span class="badge">${product.card_quantity}</span></div>
                              </div>
                              </div>
                          </a>
                        </li>
                        <% endfor %>
                    </ul>
                    <!--<div class="list-block-label">List block label text goes here</div>-->
                </div>
            </div>
            </div>
         </div>
      <!-- Toolbar-->
    </div>
  </div>
    <!-- Path to Framework7 Library JS-->
    <script type="text/javascript" src="/wechat/static/src/framework7/js/framework7.min.js"></script>
    <!-- Path to ECharts Library JS-->
    <script type="text/javascript" src="/wechat/static/src/echarts-2.2.3/dist/echarts.js"></script>
    <!-- Path to your app js-->
    <script type="text/javascript">
      //自定义的脚本引入，末尾添加随机数来解决微信JS的缓存问题
      var url = "\<script language=\"javascript\" type=\"text/javascript\" src=\"/dzx_weixin/static/src/js/card-app.js?"+Math.random()+"\"><\/script\>";
      //console.log(url);
      document.write(url);
    </script>
</body>
</html>